import request from "assets/utils/request";
import {
  Loading,
} from 'quasar'
export const uniWechatQrcodeLoginCode = data => {
  return request({
      method: 'post',
      url: '/uniLogin/wechatQrcodeLoginCode',
      data
  })
}
export const uniQwQrcodeLoginCode = data => {
  return request({
      method: 'post',
      url: '/uniLogin/qwQrcodeLoginCode',
      data
  })
}
export const getProjectinfo = data => {

    return request({
        method: 'post',
        url: '/studio/getprojectinfo',
        data
    })
}
export const loadfilelist = data => {

    return request({
        method: 'post',
        url: '/studio/getfilelist',
        data
    })
}
export const deleteVideo = data => {
    return request({
        method: 'post',
        url: '/studio/deletevideo',
        data
    })
}
export const videoRename = data => {
  Loading.show({
    customClass: 'mypage-loading',
    message: '<span class="text-white text-weight-bold">加载中...</span>'
  })
    return request({
        method: 'post',
        url: '/studio/renamevideo',
        data
    })
}
export const getfiledata = data => {
    return request({
        method: 'post',
        url: '/studio/getfiledata',
        data
    })
}
export const submitComment = data => {
    return request({
        method: 'post',
        url: '/studio/submitcomment',
        data
    })
}
export const getworkComments = data => {
    return request({
        method: 'post',
        url: '/studio/getworkcomments',
        data
    })
}
export const setworkreply = data => {
    return request({
        method: 'post',
        url: '/studio/setworkreply',
        data
    })
}
export const setreplyreply = data => {
    return request({
        method: 'post',
        url: '/studio/setreplyreply',
        data
    })
}
export const deletecomment = data => {
    return request({
        method: 'post',
        url: '/studio/deletecomment',
        data
    })
}
export const downloadComments = data => {
    return request({
        method: 'post',
        url: '/studio/downloadcomments',
        data
    })
}
export const searchcomment = data => {
    return request({
        method: 'post',
        url: '/studio/searchcomment',
        data
    })
}
export const wechatqrcodelogin = data => {
    return request({
        method: 'post',
        url: '/oa/user/wechatqrcodelogin',
        data
    })
}
export const confirmlogin = data => {
    return request({
        method: 'post',
        url: '/oa/user/confirmlogin',
        data
    })
}

export const getTaskList = data => {
    return request({
        method: 'post',
        url: '/project/getprotasklist',
        data
    })
}


//文件夹
export const createFolder = data => {
    return request({
        method: 'post',
        url: '/studio/createfolder',
        data
    })
}
export const loadFolderList = data => {
    return request({
        method: 'post',
        url: '/studio/loadfolderlist',
        data
    })
}
export const moveFile = data => {
    return request({
        method: 'post',
        url: '/studio/movefile',
        data
    })
}
export const renameFolder = data => {
    return request({
        method: 'post',
        url: '/studio/renamefolder',
        data
    })
}
export const loadFolderInfo = data => {
    return request({
        method: 'post',
        url: '/studio/loadfolderinfo',
        data
    })
}
export const loadFolderVideo = data => {
    return request({
        method: 'post',
        url: '/studio/loadfoldervideo',
        data
    })
}
export const generateProjectShareLink = data => {
    return request({
        method: 'post',
        url: '/studio/generateprojectsharelink',
        data
    })
}
export const checkShareCode = data => {
    return request({
        method: 'post',
        url: '/studio/checksharecode',
        data
    })
}




